CIM

Section: User Commands (1)
Updated: 13 Jan 1989
Index Return to Main Contents
 

NAME

cim - Compile Simula programs into C

 

SYNOPSIS

cim [ options ] file ...  

DESCRIPTION

Cim is the Simula compiler that compiles into C. The C program will then be compiled with cc , and linked with other modules.

Cim will accept one Simula program and other none Simula modules. The specified Simula program will be compiled and linked with the modules. If a main Simula program is compiled then it will be automatic linked with the Simula modules that it uses. If a separate Class or Procedure is compiled, then the linking will be supressed.  

OPTIONS

The following options are accepted by the cim command:
-c
Supress linking of the complete program.
-C
Only link the specifiede files.
-cc
The following argument is the name of the C-compiler.
-Dname
Define a symbol name.
-E
Run only the preprocessor and output the result to standard output.
-g
Make the C compiler produce debugging information. This option is useful for debugging the generated code.
-gcc
Invoke the Gnu Project C compiler instead of the standard C compiler. This option is useful if the standard C compiler don't generate correct code.
-I dir
Use the Simula include file located in directory dir instead of the standard directory.
-l
Omit line number information in the compiled program. This will make the program smaller and faster.
-llibrary
Link with object library library. This option is parsed to the link-command.
-L dir
Use the Simula library located in directory dir instead of the standard directory.
-m
The memory pool size may be set at runtime by an option -mn.
-mn
Set the initial memory pool size to n mega bytes.
-Mn
Set the maximal memory pool size to n mega bytes.
-o
The following argument is the name of the output executable file.
-oc
The following argument will be parsed to the CC-command.
-ol
The following argument will be parsed to the link-command.
-q
Run the compiler in quiet mode.
-r
Run the program after compilation.
-R
Recompile the module using the same timestamp.
-s
Only C-compile and link the specified files.
-S
Run the source file trough Simula-compiler, only.
-t
Do not remove temporary files. If a main program is compiled with option -r, then the executable file will be removed unless this option or option -T is specified.
-T
Do not remove the executable file.
-Uname
Remove any initial definition of the symbol name (Inverse of the -D option).
-v
Run the compiler in verbose mode.
-w
Do not print warnings.
 

FILES

file
Executable file.
file.a
Library of source files, attribute files and object files. Include this simula library when compiling and linking. The simula library is created with ar(1V) and ranlib(1). All source and .atr files should be placed before .o files in the archive.
file.o
Object file.
file.c
Simula-compiler output file.
file.h
Output file that is included in file.c.
file.sim
Simula source file.
file
File names without an extension are assumed to be shorthand notation for the corresponding .sim file.
/usr/local/lib/libcim.a
Simula library that contains the environment, Run Time System and class Simset and Simulation. The source code to Simset and Simulation is also included, so these parts can be compiled using compiler directive %include.
/usr/local/include/cim.h
Include file for the produced C-code.
 

SE ALSO

cc(1), ld(1), ar(1V), lorder(1), topsort(1), ranlib(1)

Standard Simula, SS 636114. The Simula Standards Group, August 1986.

Viderefoering og testing av et portabelt Simula-system. Hovedoppgave til cand.scient.-graden av Terje Mjoes. Institutt for informatikk, Universitetet i Oslo, April 1989.

Et portabelt Simula-system bygget paa C. Hovedoppgave til cand.scient-graden av Sverre Johansen. Institutt for informatikk, Universitetet i Oslo, Mai 1987.

 

DIAGNOSTICS

The diagnostics produced by the Simula compiler are intended to be self-explanatory.

 

BUGS

Bugs should be reported to cim-bug@ifi.uio.no.

 

AUTHORS

Terje Mjoes, Hydro Data, Oslo.
Sverre Johansen, Department of Informatics, University of Oslo.
Stein Krogdahl, Department of Informatics, University of Oslo.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
SE ALSO
DIAGNOSTICS
BUGS
AUTHORS

This document was created by man2html, using the manual pages.
Time: 00:28:04 GMT, March 30, 2022